import  axios from "../../axios.js"

//财务类别接口
export default{
  //查询所有
  queryAll(data)
  {
    return axios({
      url:'/frontBackPay/list',
      method:'post',
      data,
    
    })
  },

  //前后台列表  
  listNew(data)
  {
    return axios({
      url:'/frontBackPay/listNew',
      method:'post',
      data,
    
    })
  },
  
  //新增
  INSERT(data){
    return axios({
      url:'/frontBackPay/insert',
      method:'post',
      data,
    
    })
  },
  //详情
  GETDETAILS(data){
    return axios({
      url:'/frontBackPay/details',
      method:'post',
      data,
    
    })
  },
  //修改
  UPDATE(data){
    return axios({
      url:'/frontBackPay/update',
      method:'post',
      data,
    
    })
  },

  //流程管理
  frontEndPayProcess(data){
    return axios({
      url:'/frontBackPay/frontEndPayProcess',
      method:'post',
      data,
    })
  },

  //渠道返佣点数修改流程
  channelCommissionList(data){
    return axios({
      url:'/frontBackPay/channelCommissionList',
      method:'post',
      data,
    })
  },

  //特殊单报账
  insertSpecialExpenses(data){
    return axios({
      url:'/specialExpenses/insertSpecialExpenses',
      method:'post',
      data,
    })
  },

  //特殊费用报销流程
  getSpecialExpenses(data){
    return axios({
      url:'/specialExpenses/getSpecialExpenses',
      method:'post',
      data,
    })
  },

    //特殊费用报销编辑
    updateSpecialExpenses2(data){
      return axios({
        url:'/specialExpenses/updateSpecialExpenses',
        method:'post',
        data,
      })
    },

  //特殊费用报销详情 
  getSpecialExpensesDetail(data){
    return axios({
      url:'/specialExpenses/getSpecialExpensesDetail',
      method:'get',
      params:data,
    })
  },

  
  //特殊费用报销修改 
  updateSpecialExpenses(data){
    return axios({
      url:'/frontBackPay/updateSpecialExpenses',
      method:'post',
      data,
    })
  },

  //获取渠道返佣点数详情
  channelCommissionDetail(data){
    return axios({
      url:'/frontBackPay/channelCommissionDetail',
      method:'get',
      params:data,
    })
  },

   //渠道返佣点数修改
   updateChannelCommissionDetail(data){
    return axios({
      url:'/frontBackPay/updateChannelCommissionDetail',
      method:'post',
      data,
    })
  },

   //前后台结账详情
   details2(data){
    return axios({
      url:'/frontBackPay/details2',
      method:'get',
      params:data,
    })
  },
   //前后台结账删除
   del_Api(data){
    return axios({
      url:'/frontBackPay/delete',
      method:'get',
      params:data,
    })
  },
};
